﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="WeatherMagnet.Magnet"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="284" Height="214" xmlns:WeatherMagnet_Converter="clr-namespace:WeatherMagnet.Converter" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
	<UserControl.Resources>
		<WeatherMagnet_Converter:DaysConverter x:Key="DaysConverter"/>
		<WeatherMagnet_Converter:WeatherIconConverter x:Key="WeatherIconConverter"/>
    <XmlDataProvider x:Key="CountriesXMLSource" d:IsDataSource="True">
      <!--<XmlDataProvider x:Key="CountriesXMLSource" Source="http://myboard.accu-weather.com/widget/myboard/city-find.asp?location=paris" d:IsDataSource="True">-->
			<XmlDataProvider.XmlNamespaceManager>
				<XmlNamespaceMappingCollection>
					<XmlNamespaceMapping Prefix="com" Uri="http://www.accuweather.com"/>
				</XmlNamespaceMappingCollection>
			</XmlDataProvider.XmlNamespaceManager>
		</XmlDataProvider>
		<DataTemplate x:Key="DataTemplate">
			<StackPanel Orientation="Horizontal">
				<Label Content="{Binding Mode=OneWay, XPath=@city}" Padding="5,0,5,0"/>
				<Label Content="{Binding Mode=OneWay, XPath=@state}" Padding="5,0,5,0"/>
			</StackPanel>
		</DataTemplate>
		<DataTemplate x:Key="DataTemplate1">
			<StackPanel Orientation="Horizontal">
				<Label Padding="5,2,5,2" Content="{Binding Mode=OneWay, XPath=@city}"/>
				<Label Padding="5,2,5,2" Content="{Binding Mode=OneWay, XPath=@state}"/>
			</StackPanel>
		</DataTemplate>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="InfoButStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid Width="Auto" Height="Auto">
							<Ellipse Fill="#00000000" Stroke="{x:Null}" Width="18" Height="18" x:Name="ellipse"/>
							<Label HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="0,0,2,0" VerticalAlignment="Center" Content="i" FontFamily="Monotype Corsiva" FontSize="16" FontWeight="Bold" Foreground="#FFFFFFFF" Padding="0,0,0,0" Width="Auto" Height="Auto"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Fill" TargetName="ellipse" Value="#19000000"/>
							</Trigger>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    <XmlDataProvider x:Key="WeatherXMLDataSource" d:IsDataSource="True">
    <!--<XmlDataProvider x:Key="WeatherXMLDataSource" Source="http://myboard.accu-weather.com/widget/myboard/weather-data.asp?location=EUR|FR|FR012|PARIS&amp;metric=1" d:IsDataSource="True">-->
			<XmlDataProvider.XmlNamespaceManager>
				<XmlNamespaceMappingCollection>
					<XmlNamespaceMapping Prefix="com" Uri="http://www.accuweather.com"/>
				</XmlNamespaceMappingCollection>
			</XmlDataProvider.XmlNamespaceManager>
		</XmlDataProvider>
		<Style x:Key="CurrentTempStyle" TargetType="{x:Type Label}">
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Padding" Value="5"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Top"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Label}">
						<StackPanel Width="Auto" Height="Auto" Orientation="Horizontal">
							<Border Width="Auto" Height="Auto" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="5,0,0,0">
								<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
							</Border>
							<Label FontSize="{TemplateBinding FontSize}" Foreground="#FFFFFFFF" Padding="0,0,5,0" Content="°" VerticalAlignment="Top"/>
						</StackPanel>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Storyboard x:Key="ExpandCities">
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_citiesLbx" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeySpline="0,1,1,1" KeyTime="00:00:00.4000000" Value="31,50.554,99,22"/>
			</ThicknessAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="ContractCities">
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_citiesLbx" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="31,50.554,99,133" KeySpline="0,1,1,1"/>
			</ThicknessAnimationUsingKeyFrames>
		</Storyboard>
		<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
							<Border Width="Auto" Height="Auto" BorderBrush="#FF202020" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0.024">
										<GradientStop Color="#A3FFFFFF" Offset="0.049"/>
										<GradientStop Color="#00FFFFFF" Offset="1"/>
										<GradientStop Color="#FF828282" Offset="0"/>
										<GradientStop Color="#00FFFFFF" Offset="0.348"/>
										<GradientStop Color="#1EFFFFFF" Offset="0.933"/>
										<GradientStop Color="#00FFFFFF" Offset="0.857"/>
									</LinearGradientBrush>
								</Border.Background>
								<Border Width="Auto" Height="Auto" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" x:Name="border">
									<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" HorizontalAlignment="Center" VerticalAlignment="Center"/>
								</Border>
							</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsPressed" Value="True">
								<Setter Property="Background" TargetName="border" Value="#28000000"/>
							</Trigger>
						</ControlTemplate.Triggers>						
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
	</UserControl.Triggers>

	<Grid x:Name="_root" Margin="0,0,0,0">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Grid Margin="0,0,0,0" x:Name="_back" Visibility="Hidden" d:IsHidden="True">
			<Grid HorizontalAlignment="Stretch" Width="Auto" x:Name="_b" Visibility="Visible" Margin="0,32,0,0">
				<Image Source="Images\weather_backside.png" Stretch="Fill"/>
				<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="City, State, or ZIP code :" Margin="20,8,0,0" Foreground="#FFFFFFFF"/>
				<Label Foreground="#FFFFFFFF" Margin="0,8,28.76,0" VerticalAlignment="Top" Content="Degrees :" d:LayoutOverrides="Width" HorizontalAlignment="Right"/>
				<ComboBox HorizontalAlignment="Right" Margin="0,31.277,28.76,0" VerticalAlignment="Top" Width="57.11" Height="19.277" IsSynchronizedWithCurrentItem="True" x:Name="_metricsLbx" SelectedIndex="0">
					<ListBoxItem Content="C°"/>
					<ComboBoxItem Content="F°"/>
				</ComboBox>
				<Border RenderTransformOrigin="0.5,0.5" Margin="31,77.58,37.76,88.627">
					<Border.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Border.RenderTransform>
					<Image Width="Auto" Height="Auto" Source="Images\accuweather_logotype_white.png" Stretch="Fill" Cursor="Hand" x:Name="_accuWeatherHomePageLink"/>
				</Border>
				<Button HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="Done" Margin="0,0,28.753,31.04" x:Name="_doneBt" Width="45.965" FontWeight="Bold" Foreground="#FFFFFFFF" Cursor="Hand" Style="{DynamicResource ButtonStyle1}"/>
				<TextBox Margin="31,31.277,99,0" x:Name="_cityTbx" VerticalAlignment="Top" Height="19.277" Text="" TextWrapping="Wrap" FontSize="10"/>
				<ListBox Margin="31,50.554,99,134" x:Name="_citiesLbx" SelectedIndex="-1" IsSynchronizedWithCurrentItem="True" ItemTemplate="{DynamicResource DataTemplate1}" ItemsSource="{Binding Mode=Default, Source={StaticResource CountriesXMLSource}, XPath=/com:adc_database/com:citylist/com:location}" FontSize="10"/>
			</Grid>
		</Grid>
		<Grid Margin="0,0,0,0" x:Name="_front">
			<Grid HorizontalAlignment="Stretch" Width="Auto" x:Name="_f" DataContext="{Binding Mode=Default, Source={StaticResource WeatherXMLDataSource}, XPath=/com:adc_database}" Margin="0,32,0,0">
				<Border HorizontalAlignment="Stretch" Margin="13,9,12,19" Width="Auto" Opacity="1" BorderThickness="2,2,2,2" CornerRadius="10,10,10,10">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFB4C1D4" Offset="0"/>
							<GradientStop Color="#FF5F718A" Offset="1"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF344864" Offset="0"/>
							<GradientStop Color="#FF445978" Offset="1"/>
							<GradientStop Color="#FF2E4361" Offset="0.839"/>
						</LinearGradientBrush>
					</Border.Background>
					<Grid Width="Auto" Height="Auto">
						<Border Margin="0,-1,0,127" CornerRadius="10,10,0,0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FFB4C1D4" Offset="0"/>
									<GradientStop Color="#B17689A5" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Label FontFamily="Cordia New" FontSize="72" FontWeight="Normal" Foreground="#FFFFFFFF" Padding="5,0,5,0" HorizontalAlignment="Right" Margin="0,-26.087,-5.59,0" Style="{DynamicResource CurrentTempStyle}" VerticalAlignment="Top" Width="Auto" Height="Auto" Content="{Binding Mode=Default, XPath=com:currentconditions/com:temperature}" d:LayoutOverrides="VerticalAlignment" x:Name="_temperature"/>
						<StackPanel HorizontalAlignment="Left" Margin="9,-1.792,0,0" VerticalAlignment="Top" Width="Auto" Height="18.81" Orientation="Horizontal" d:LayoutOverrides="VerticalAlignment" Opacity="0.695">
							<Label Content="Max :" Foreground="#FFFFFFFF" Padding="5,0,5,0" FontSize="14" FontFamily="Cordia New" VerticalAlignment="Top"/>
							<Label Style="{DynamicResource CurrentTempStyle}" Content="{Binding Mode=Default, XPath=com:forecast/com:day[1]/com:daytime/com:hightemperature}" Foreground="#FFFFFFFF" x:Name="_currentMax" FontSize="14" FontFamily="Cordia New" Padding="0,0,5,0" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-8,0,0,0"/>
						</StackPanel>
						<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="{Binding Mode=Default, XPath=com:local/com:city}" Foreground="#FFFFFFFF" Margin="9,4.816,0,0" x:Name="_city" FontSize="18" FontWeight="Bold" FontFamily="Cordia New"/>
						<StackPanel HorizontalAlignment="Left" Margin="9,27.208,0,0" VerticalAlignment="Top" Width="Auto" Height="18.81" Orientation="Horizontal" Opacity="0.695">
							<Label FontFamily="Cordia New" FontSize="14" Foreground="#FFFFFFFF" Padding="5,0,5,0" VerticalAlignment="Top" Content="Min :"/>
							<Label Style="{DynamicResource CurrentTempStyle}" Content="{Binding Mode=Default, XPath=com:forecast/com:day[1]/com:daytime/com:lowtemperature}" Foreground="#FFFFFFFF" x:Name="_currentMin" FontSize="14" FontFamily="Cordia New" Padding="0,0,5,0" HorizontalAlignment="Left" Margin="-8,0,0,0" VerticalAlignment="Top"/>
						</StackPanel>
						<Grid Margin="0,58,0,0" x:Name="_forecastZone">
							<Border Margin="0,0,0,0" VerticalAlignment="Top" Height="23.162" Background="#FF39507A"/>
							<StackPanel HorizontalAlignment="Stretch" Width="Auto" Orientation="Horizontal">
								<StackPanel Height="Auto" Width="49" x:Name="_firstDay">
									<Label Content="{Binding Converter={StaticResource DaysConverter}, Mode=Default, XPath=com:forecast/com:day[1]/com:daycode}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontFamily="Cordia New" FontSize="18" FontWeight="Bold" Padding="5,0,5,0"/>
									<Image Width="Auto" Height="Auto" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:forecast/com:day[1]/com:daytime/com:weathericon}" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
										<Image.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Image.RenderTransform>
									</Image>
									<Label Content="{Binding Mode=Default, XPath=com:forecast/com:day[1]/com:daytime/com:hightemperature}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource CurrentTempStyle}"/>
								</StackPanel>
								<Grid Width="2" Height="80" VerticalAlignment="Top">
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFCDE2FF" HorizontalAlignment="Left" Width="1" Opacity="0.19" Data="M104.9446,13.548476 L104.9446,96.264568"/>
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF2B3F5C" Width="1" Data="M104.9446,13.548476 L104.9446,96.264568" HorizontalAlignment="Right" Opacity="0.795"/>
								</Grid>
								<StackPanel Width="49" Height="92" x:Name="_secondDay">
									<Label Content="{Binding Converter={StaticResource DaysConverter}, Mode=Default, XPath=com:forecast/com:day[2]/com:daycode}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontFamily="Cordia New" FontSize="18" FontWeight="Bold" Padding="5,0,5,0"/>
									<Image Width="Auto" Height="Auto" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:forecast/com:day[2]/com:daytime/com:weathericon}" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
										<Image.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Image.RenderTransform>
									</Image>
									<Label Foreground="#FFFFFFFF" HorizontalAlignment="Center" Style="{DynamicResource CurrentTempStyle}" VerticalAlignment="Center" Content="{Binding Mode=Default, XPath=com:forecast/com:day[2]/com:daytime/com:hightemperature}"/>
								</StackPanel>
								<Grid Width="2" Height="80" VerticalAlignment="Top">
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFCDE2FF" HorizontalAlignment="Left" Width="1" Opacity="0.19" Data="M104.9446,13.548476 L104.9446,96.264568"/>
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF2B3F5C" Width="1" Data="M104.9446,13.548476 L104.9446,96.264568" HorizontalAlignment="Right" Opacity="0.795"/>
								</Grid>
								<StackPanel Width="49" Height="92" x:Name="_thirdDay">
									<Label Content="{Binding Converter={StaticResource DaysConverter}, Mode=Default, XPath=com:forecast/com:day[3]/com:daycode}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontFamily="Cordia New" FontSize="18" FontWeight="Bold" Padding="5,0,5,0"/>
									<Image Width="Auto" Height="Auto" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:forecast/com:day[3]/com:daytime/com:weathericon}" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
										<Image.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Image.RenderTransform>
									</Image>
									<Label Foreground="#FFFFFFFF" HorizontalAlignment="Center" Style="{DynamicResource CurrentTempStyle}" VerticalAlignment="Center" Content="{Binding Mode=Default, XPath=com:forecast/com:day[3]/com:daytime/com:hightemperature}"/>
								</StackPanel>
								<Grid Width="2" Height="80" VerticalAlignment="Top">
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFCDE2FF" HorizontalAlignment="Left" Width="1" Opacity="0.19" Data="M104.9446,13.548476 L104.9446,96.264568"/>
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF2B3F5C" Width="1" Data="M104.9446,13.548476 L104.9446,96.264568" HorizontalAlignment="Right" Opacity="0.795"/>
								</Grid>
								<StackPanel Width="49" Height="92" x:Name="_fourthDay">
									<Label Content="{Binding Converter={StaticResource DaysConverter}, Mode=Default, XPath=com:forecast/com:day[4]/com:daycode}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontFamily="Cordia New" FontSize="18" FontWeight="Bold" Padding="5,0,5,0"/>
									<Image Width="Auto" Height="Auto" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:forecast/com:day[4]/com:daytime/com:weathericon}" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
										<Image.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Image.RenderTransform>
									</Image>
									<Label Foreground="#FFFFFFFF" HorizontalAlignment="Center" Style="{DynamicResource CurrentTempStyle}" VerticalAlignment="Center" Content="{Binding Mode=Default, XPath=com:forecast/com:day[4]/com:daytime/com:hightemperature}"/>
								</StackPanel>
								<Grid Width="2" Height="80" VerticalAlignment="Top">
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFCDE2FF" HorizontalAlignment="Left" Width="1" Opacity="0.19" Data="M104.9446,13.548476 L104.9446,96.264568"/>
									<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF2B3F5C" Width="1" Data="M104.9446,13.548476 L104.9446,96.264568" HorizontalAlignment="Right" Opacity="0.795"/>
								</Grid>
								<StackPanel Width="49" Height="69" x:Name="_fithDay" VerticalAlignment="Top">
									<Label Content="{Binding Converter={StaticResource DaysConverter}, Mode=Default, XPath=com:forecast/com:day[5]/com:daycode}" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontFamily="Cordia New" FontSize="18" FontWeight="Bold" Padding="5,0,5,0"/>
									<Image Width="Auto" Height="Auto" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:forecast/com:day[5]/com:daytime/com:weathericon}" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" Cursor="Hand">
										<Image.RenderTransform>
											<TransformGroup>
												<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
												<SkewTransform AngleX="0" AngleY="0"/>
												<RotateTransform Angle="0"/>
												<TranslateTransform X="0" Y="0"/>
											</TransformGroup>
										</Image.RenderTransform>
									</Image>
									<Label Foreground="#FFFFFFFF" HorizontalAlignment="Center" Style="{DynamicResource CurrentTempStyle}" VerticalAlignment="Center" Content="{Binding Mode=Default, XPath=com:forecast/com:day[5]/com:daytime/com:hightemperature}"/>
								</StackPanel>
							</StackPanel>
							<Grid Width="2" HorizontalAlignment="Stretch" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top">
								<Grid.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="-90"/>
										<TranslateTransform X="0" Y="-46"/>
									</TransformGroup>
								</Grid.RenderTransform>
								<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFCDE2FF" HorizontalAlignment="Left" Width="1" Opacity="0.19" Data="M104.9446,13.548476 L104.9446,96.264568" Margin="0,-81.55,0,-81.534"/>
								<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF2B3F5C" Width="1" Data="M104.9446,13.548476 L104.9446,96.264568" HorizontalAlignment="Right" Opacity="0.795" Margin="0,-81.562,0,-81.534"/>
							</Grid>
						</Grid>
						<Border VerticalAlignment="Top" Height="Auto" d:LayoutOverrides="VerticalAlignment" Margin="0,-52.038,0,0">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.988,0.5" StartPoint="0.02,0.5">
									<GradientStop Color="#00000000" Offset="0"/>
									<GradientStop Color="#00000000" Offset="1"/>
									<GradientStop Color="#FF000000" Offset="0.71"/>
									<GradientStop Color="#FF000000" Offset="0.295"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
							<Image x:Name="_draw" Height="170" Source="{Binding Converter={StaticResource WeatherIconConverter}, Mode=Default, XPath=com:currentconditions/com:weathericon}" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="265"/>
						</Border>
					</Grid>
				</Border>
				<StackPanel HorizontalAlignment="Left" Margin="14,68,0,0" VerticalAlignment="Top" Width="Auto" Height="26" Orientation="Horizontal">
					<Button Cursor="Hand" Margin="5,0,0,0" x:Name="_linkDay1" Width="40" Height="22" Opacity="0" Content="{Binding Mode=Default, XPath=com:forecast/com:day[1]/com:url}"/>
					<Button Cursor="Hand" x:Name="_linkDay2" Width="40" Height="22" Opacity="0" Content="{Binding Mode=Default, XPath=com:forecast/com:day[2]/com:url}" Margin="11,0,0,0"/>
					<Button Cursor="Hand" x:Name="_linkDay3" Width="40" Height="22" Opacity="0" Content="{Binding Mode=Default, XPath=com:forecast/com:day[3]/com:url}" Margin="12,0,0,0"/>
					<Button Cursor="Hand" x:Name="_linkDay4" Width="40" Height="22" Opacity="0" Content="{Binding Mode=Default, XPath=com:forecast/com:day[4]/com:url}" Margin="11,0,0,0"/>
					<Button Cursor="Hand" x:Name="_linkDay5" Width="40" Height="22" Opacity="0" Content="{Binding Mode=Default, XPath=com:forecast/com:day[5]/com:url}" Margin="12,0,0,0"/>
				</StackPanel>
				<Button HorizontalAlignment="Right" x:Name="_flipToBackBt" VerticalAlignment="Bottom" Content="Setup" FontSize="10" Style="{DynamicResource InfoButStyle}" Opacity="1" Margin="0,0,13,23"/>
			</Grid>
		</Grid>
		<Grid HorizontalAlignment="Stretch" Width="Auto" x:Name="_flip" Margin="0,0,0,0"/>
	</Grid>
</UserControl>